// 导入打字机
import vuetyped from 'vue3typed'
import print from 'vue3-print-nb'
import { App } from 'vue'
import { useComponents } from './components'
import { addAppProperies } from './useAppPropery'
import ElementPlus from 'element-plus'
// 关闭官方主题
// import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'

// 导入自定义主题样式
import '@/assets'

export const usePlugins = (app: App) => {
  useComponents(app)
  addAppProperies(app)
  app.use(ElementPlus)
  // 屏蔽错误信息
  // app.config.errorHandler = () => null
  // 屏蔽黄色警告信息
  app.config.warnHandler = () => null
  app.use(vuetyped)
  app.use(print)
}
